import { RootThunkAction } from "@/types/store";
import request from "@/utils/request";
export const getDraw = (): RootThunkAction => {
  return async (dispatch) => {
    const {
      data: { data },
    } = await request.get("/todo/list");
    dispatch({
      type: "DRAW_SAVE",
      payload: data,
    });
  };
};
